package com.example.check_oa.model.mapper;

import com.example.comment_oa.pojos.attendance.HolidayAp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author cjl
* @description 针对表【holiday_ap】的数据库操作Mapper
* @createDate 2022-10-22 14:10:05
* @Entity com.example.check_oa.model.pojo.HolidayAp
*/
@Mapper
public interface HolidayApMapper extends BaseMapper<HolidayAp> {
    //获取当月请假天数
    int allMouthHoliDay(@Param("mouth")String mouth,@Param("userNo")String userNo);
    //查询员工某个假期余额
    int andHoliType(@Param("userNo")String userNo,@Param("holiType")int typeId);
    //mouth
    List<HolidayAp> selectHoli(@Param("userNo")String userNo, @Param("is")int is);
    //今天请假的人
    HolidayAp selectHoliOneDate(@Param("day")String day,@Param("userNo")String userNo);
    //wate查
    HolidayAp selectHoWater(@Param("water")String water);

    int add(HolidayAp holidayAp);
}




